﻿using RockBus.ServiceModel;
using RockBus.Transport.Interfaces;
using System;
using System.ServiceModel.Channels;

namespace RockBus.Transport.Wcf
{
    public class TwoWayClient : ClientBaseEx<ITwoWay>, ITwoWay
    {
        public TwoWayClient(ClientBaseArgs args)
            : base(args)
        {
        }

        public IAsyncResult BeginProcessRequest(Message message, AsyncCallback callback, object state)
        {
            return base.Contract.BeginProcessRequest(message, callback, state);
        }

        public Message EndProcessRequest(IAsyncResult result)
        {
            return base.Contract.EndProcessRequest(result);
        }
    }
}